package com.ruoyi.APPMS.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.APPMS.domain.Purchasepartorder;
import com.ruoyi.APPMS.mapper.PurchasepartorderMapper;
import com.ruoyi.APPMS.service.IPurchasepartorderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 零部件订单Service业务层处理
 *
 * @author 任容
 * @date 2023-07-04
 */
@Service

public class PurchasepartorderServiceImpl extends ServiceImpl<PurchasepartorderMapper, Purchasepartorder> implements IPurchasepartorderService {
    @Autowired
    private PurchasepartorderMapper purchasepartorderMapper;

    @Override
    public List<Purchasepartorder> list(Purchasepartorder purchasepartorder) {
        return purchasepartorderMapper.list(purchasepartorder);
    }

    @Override
    public Purchasepartorder listByID(Long purchasepartorderid) {
        return purchasepartorderMapper.listByID(purchasepartorderid);
    }

    @Override
    public boolean createLogistic1(Purchasepartorder purchasepartorder) {
        return purchasepartorderMapper.createLogistic1(purchasepartorder) > 0;
    }

    @Override
    public boolean createLogistic2(Purchasepartorder purchasepartorder) {
        return purchasepartorderMapper.createLogistic2(purchasepartorder) > 0;
    }

    @Override
    public boolean createLogistic3(Purchasepartorder purchasepartorder) {
        return purchasepartorderMapper.createLogistic3(purchasepartorder) > 0;
    }
}
